<template>
	<view>
		<!-- #ifdef APP-NVUE -->
		<view style="flex-direction: row;align-items: center;justify-content: center;">
			<image src="../../../static/map/back.png" style="width: 50rpx;" mode="widthFix" @click="goBack()"></image> 
		</view>
		<!-- #endif -->
		<!-- #ifndef APP-NVUE-->
		<view style="display: flex;align-items: center;justify-content: center;"><u-icon name="arrow-left" :size="size" style="font-weight: 100;" @click="goBack()"></u-icon></view>
		<!-- #endif -->
	</view>
</template>

<script>
export default {
	name: 'h-navigateBack', 
	props: {
		// 显示文字
		size: {
			type: String,
			default: '50'
		},
		currentPage:{
			type: String,
			default:''
		}
	},
	data() {
		return {};
	},
	methods: {
		goBack() {
			if(this.currentPage == 'TravelMode'){
				uni.$emit('pageBack',{
					data:''
				})
			}
			uni.navigateBack();
		}
	}
};
</script>

<style></style>
